package Ooday01;

public class Car {
    //成员变量
    String brand;
    String color;
    double price;
    //构造方法
        Car(){

        }
    Car(String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }
    void start(){
        System.out.println("这是一辆"+brand);
    }
    void run(){
        System.out.println("这是一辆"+color+"宝马"+"在路上");
    }
    void stop(){
        System.out.println("一辆"+color+"的"+brand+"停在路边");
    }
}
